<div class="double-11-page">
	<div class="double_11_top_banner">
		<div class="container cache_top">
			<img alt="" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/top_1.jpg">
			<img alt="" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/top_2.jpg">
			<img alt="" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/top_3.jpg">
		</div>
		<div class="close_banner"></div>
		<div class="countdown">
			<div class="countdown_title">倒计时</div>
			<div class="countdown_spt" id="countdown_hour"></div>
			<div class="countdown_dian"></div>
			<div class="countdown_spt" id="countdown_minute"></div>
			<div class="countdown_dian"></div>
			<div class="countdown_spt second" id="countdown_second"></div>
		</div>
	</div>
	
	<div class="double_11_banner">
		<div class="container">
		<div class="col-md-12">
			<div class="double_11_banner_div">
				<a target="_blank" class="banner_263_392 pull-left"  title="母婴专场" href="<?php echo  $this->createUrl('/front/index/index',array('cid'=>3)); ?>">
					<img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/my.jpg">
				</a>
				<a target="_blank" class="banner_392_191 pull-left"  title="女装专场" href="<?php echo  $this->createUrl('/front/index/index',array('cid'=>1)); ?>">
					<img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/women.jpg">
				</a>
				<a target="_blank" class="banner_191_392 pull-left"  title="家居百货" href="<?php echo  $this->createUrl('/front/index/index',array('cid'=>5)); ?>">
					<img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/jiaju.jpg">
				</a>
				<a target="_blank" class="banner_191_191 position_down" title="美食专场" href="<?php echo  $this->createUrl('/front/index/index',array('cid'=>6)); ?>">
					<img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/food.gif">
				</a>
				<a target="_blank" class="banner_191_191 position_down2"  title="男装专场" href="<?php echo  $this->createUrl('/front/index/index',array('cid'=>2)); ?>">
					<img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/man.jpg">
				</a>
				<a target="_blank" class="banner_191_191 pull-left"  title="9.9包邮" href="<?php echo $this->createUrl('/front/cat/jj'); ?>">
					<img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/jj.gif">
				</a>
				<a target="_blank" class="banner_191_191 pull-left"  title="男鞋女鞋" href="<?php echo  $this->createUrl('/front/index/index',array('cid'=>4)); ?>">
					<img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/shoes.jpg">
				</a>
			</div>
		</div>
		</div>
	</div>
	
	<div class="goodlist_content">
	    <div class="container">
	    	<div class="col-md-12">
		    	<div class="double_11_tag">
					<ul>
						<li><a href="<?php echo $this->createUrl('/front/index/qing');?>" target="_blank">秋冬新款</a></li>
						<li><a href="<?php echo $this->createUrl('/front/index/qing');?>" target="_blank">连衣裙类</a></li>
						<li><a href="<?php echo $this->createUrl('/front/index/qing');?>" target="_blank">儿童外套</a></li>
						
						<li class="pull-right btn order_hot">最热</li>
						<li class="pull-right btn">默认</li>
						<li class="pull-right label_order">排序方式:</li>
					</ul>
					
				</div>
			</div>
	        <div class=" double_11_goodlist">
	            <div class="body row">
	                <?php foreach ($home_goods as $good): ?>
	                    <?php include $this->getViewFile('../lib/double_11_goodlist'); ?>
	                <?php endforeach; ?>
	            </div>
	            <div class="clearfix"></div>
	            <div class="pager" id="pager">
	                <?php echo $pages ?>
	            </div>
	        </div>
	    </div>
    </div>
    
    <div class="double_11_footer">
    	<div class="container footer_top">
    	<div class="col-md-12">
	    	<a href="<?php echo $this->createUrl('/front/index/tmall');?>">
	    		<img class="double_11_footer_frist" alt="" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/footer_tmall.jpg">
	    	</a>
	    	
	    	<a href="<?php echo $this->createUrl('/front/index/qing');?>">
	    		<img class="double_11_footer_last" alt="" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/footer_qing.png">
	    	</a>
    	</div>
    	</div>
    </div>
</div>
<script>
//2014-10-15 10:00:00 转时间戳
function js_strto_time(str_time){
    var new_str = str_time.replace(/:/g,'-');
    new_str = new_str.replace(/ /g,'-');
    var arr = new_str.split("-");
    var datum = new Date(Date.UTC(arr[0],arr[1]-1,arr[2],arr[3]-8,arr[4],arr[5]));
    return strtotime = datum.getTime();
}
//时间戳转  2014-10-15 10:00:00
function js_date_time(unixtime) {
    var timestr = new Date(parseInt(unixtime));
    var datetime = timestr.toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");
    return datetime;
}
//刷新倒计时
function refs_time(){
	var time 		= (new Date()).valueOf();
	var double11 	= js_strto_time('2014-11-11 00:00:00');
	var countdown 	= parseInt((double11 - time) / 1000);
	var hour		= parseInt(countdown / 3600);
	var minute		= parseInt((countdown - parseInt(countdown / 3600 ) * 3600) / 60);
	var second		= parseInt((countdown - parseInt(countdown / 3600 ) * 3600) % 60);

	$('#countdown_hour').html(hour);
	$('#countdown_minute').html(minute);
	$('#countdown_second').html(second);
	//alert(hour + "@@" + minute + "##" +second);
}

//隐藏头部Banner
function top_banner_small(){
	$('.double_11_top_banner').addClass('small_banner');
	$('.countdown').hide();
	$('.close_banner').hide();
	$('.cache_top').hide();
	
}

$('.close_banner').click(function(){
	top_banner_small();
});


$(document).ready(function() {
	var ref_time_num = setInterval("refs_time()",1000);
	<?php //if (!$result) echo "top_banner_small();"; ?>
	$('.double_11_top_banner').show();
	//setTimeout("top_banner_small()",15000);
	//setTimeout(function(){clearInterval(ref_time_num);},15000);
});






</script>